import request from '@/utils/request'

// 查询手术发生的不良事件列表
export function listBadeventsurgery(query) {
  return request({
    url: '/manage/badeventsurgery/list',
    method: 'get',
    params: query
  })
}

// 查询手术发生的不良事件详细
export function getBadeventsurgery(badSurgeryId) {
  return request({
    url: '/manage/badeventsurgery/' + badSurgeryId,
    method: 'get'
  })
}

// 新增手术发生的不良事件
export function addBadeventsurgery(data) {
  return request({
    url: '/manage/badeventsurgery',
    method: 'post',
    data: data
  })
}

// 修改手术发生的不良事件
export function updateBadeventsurgery(data) {
  return request({
    url: '/manage/badeventsurgery',
    method: 'put',
    data: data
  })
}

// 删除手术发生的不良事件
export function delBadeventsurgery(badSurgeryId) {
  return request({
    url: '/manage/badeventsurgery/' + badSurgeryId,
    method: 'delete'
  })
}
